import request from '@/utils/request'

// 餐饮茶馆信息分页
export function getList(params) {
  return request({
    url: '/diet/list',
    method: 'POST',
    params
  })
}

// 餐饮茶馆信息查询
export function selectDiet(params) {
  return request({
    url: '/diet/load',
    method: 'post',
    params
  })
}

// 证件管理添加
export function addDiet(data) {
  return request({
    url: '/diet/add',
    method: 'POST',
    data
  })
}

// 餐饮茶馆信息修改
export function updateDiet(data) {
  return request({
    url: '/diet/update',
    method: 'POST',
    data
  })
}

// 餐饮茶馆信息删除
export function deleteDiet(data) {
  return request({
    url: '/diet/delete',
    method: 'post',
    data
  })
}
